<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div class="info">
		<form action="" method="post" enctype="multipart/form-data">
			<input type="hidden" name="pid"
				value="<?php echo isset($item['pid'])?$item['pid']:'';?>" />
			<table border="1" class="table">
				<tr>
					<th colspan="2">添加道具</th>
				</tr>
				<tr>
					<td width="30%">道具名字:</td>
					<td width="70%" class="left"><input type="text" name="name"
						value="<?php echo isset($item['name'])?$item['name']:'';?>" /></td>
				</tr>
				<tr>
					<td>道具分类:</td>
					<td class="left"><select name="type">
							<option value="1"
							<?php echo isset($item['type']) && $item['type'] == 1 ? 'selected' : '';?>>解洒类</option>
							<option value="2"
							<?php echo isset($item['type']) && $item['type'] == 2 ? 'selected' : '';?>>表情包</option>
							<option value="3"
							<?php echo isset($item['type']) && $item['type'] == 3 ? 'selected' : '';?>>互动包</option>
					</select></td>
				</tr>
				<tr>
					<td>价格:</td>
					<td class="left"><input type="text" name="price"
						value="<?php echo isset($item['price'])?$item['price']:'';?>" /></td>
				</tr>
				<tr>
					<td>VIP价格:</td>
					<td class="left"><input type="text" name="vip_price"
						value="<?php echo isset($item['vip_price'])?$item['vip_price']:'';?>" />
					</td>
				</tr>
				<tr>
					<td>购买币种:</td>
					<td class="left"><select name="currency">
							<option value="0"
							<?php echo isset($item['currency']) && $item['currency'] == 0 ? 'selected' : '';?>>游戏币</option>
							<option value="1"
							<?php echo isset($item['currency']) && $item['currency'] == 1 ? 'selected' : '';?>>博雅币</option>
					</select>
					</td>
				</tr>
				<tr>
					<td>上传图片:</td>
					<td class="left"><?php if(isset($item['file']) && !empty($item['file'])): ?>
						<object classid="clsid:D27CDB6E-AE6D-11cf- 96B8-444553540000"
							width="100" height="100">
							<param name="movie"
								value="<?php echo $tmp_url . $item['file'] ?>">
							<param name="quality" value="high">
							<param name="bgcolor" value="#FFFFFF">
							<!--[if !IE]> <-->
							<object data="<?php echo $tmp_url . $item['file'] ?>" width="100"
								height="100" type="application/x-shockwave-flash">
								<param name="quality" value="high">
								<param name="bgcolor" value="#FFFFFF">
								<param name="pluginurl"
									value="<?php echo $tmp_url . $item['file'] ?>">
							</object>
							<!--> <![endif]-->
						</object> <?php endif;?> <br /> <input type="file" name="file"
						id="file" value='<?php echo isset($item['file']) ? $item['file'] : '';?>' />
					</td>
				</tr>
				<tr>

					<td>是否开放:</td>
					<td class="left"><input type="radio" name="status" value="0"
					<?php echo isset($item['status']) && $item['status'] == 0 ? 'checked' : '';?> />是
						<input type="radio" name="status" value="1"
						<?php echo isset($item['status']) && $item['status'] == 1 ? 'checked' : '';?> />否
					</td>
				</tr>
				<tr>
					<td>礼物描述:</td>
					<td class="left"><textarea name="desc" cols="25" rows="5"><?php echo isset($item['desc'])?$item['desc']:'';?></textarea>
					</td>
				</tr>
				<tr>
					<td>作用参数(天/次/点)</td>
					<td class="left"><input type="text" name="features"
						value="<?php echo isset($item['features'])?$item['features']:'0';?>" />
					</td>
				</tr>
				<tr>
					<td colspan="2"><input type="hidden" name="form_id"
						value="<?php echo time() ?>" /> <input type="submit" value="保存" />
					</td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>
